﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ImageK.Java.Extensions
{
    public static class DoubleExtensions
    {
        public static long doubleToLongBits(this double value)
        {
            if (!double.IsNaN(value))
            {
                return BitConverter.DoubleToInt64Bits(value);
            }
            return 0x7ff8000000000000L;
        }
    }
}
